package com.ifacebox.software.updater;

/**
 * @author znn
 */
public class SoftwareUpdaterException extends Exception {
    private static final long serialVersionUID = 1L;
    private final String errorMsg;

    public SoftwareUpdaterException(String errorMsg) {
        super(errorMsg);
        this.errorMsg = errorMsg;
    }

    public SoftwareUpdaterException(String errorMsg, Throwable cause) {
        super(cause);
        this.errorMsg = String.format("%s (%s)", errorMsg, cause.getMessage());
    }

    public String getErrorMsg() {
        return errorMsg;
    }

}
